import { createApp } from 'vue'
// 按需要引入
import { globalRegister } from './gloable'

//引入初始化css
import 'normalize.css'
import './assets/css/index.less'

import App from './App.vue'
import router from './router'
import store from './store'
import { setupStore } from './store'

//全局引入
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'

const app = createApp(App)

// regiterApp(app)
// 注册element-plus/其他
app.use(globalRegister)
app.use(store)
setupStore() //注册路由前先生成动态路由(防止刷新后匹配不到动态路由添加的路径)这样才是完整的路由
app.use(router)
app.mount('#app')
